package com.jnc.web.biz.system.mapper;

import com.jnc.core.base.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Auther: jjn
 * @Date: 2020/7/31
 * @Desc:
 */
@Mapper
public interface UserMapper {
    public List<User> queryUser(User record);
    public User getUser(Integer userId);
    public User getUserByLoginName(String loginName);
    public List<User> checkUser(User record);
    public int deleteUser(List<Integer> userIds);
    public int addUser(User record);
    public int editUser(User record);
    public int editPW(User record);
    public int addUserRole(Map<String, Object> map);
    public int deleteUserRoles(List<Integer> userIds);
    public int deleteUserRole(Integer userId);

}
